package com.example.demo.mvvm.ui.fragment;

import android.os.Bundle;

import com.example.demo.mvvm.BR;
import com.example.demo.mvvm.R;
import com.example.demo.mvvm.databinding.FragmentMainKnowBinding;
import com.example.demo.mvvm.ui.base.BaseFragment;
import com.example.demo.mvvm.ui.vm.fragment.KnowFragmentVm;

/**
 * Created by 80711 on 2018/5/16.
 */

public class KnowFragment extends BaseFragment<FragmentMainKnowBinding> {

    public static KnowFragment newInstance() {
        Bundle args = new Bundle();
        KnowFragment fragment = new KnowFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    protected void init() {
        databing.pullRefresh.autoRefresh();
        setViewVM(BR.viewModel , new KnowFragmentVm());
    }

    @Override
    public int getLayoutId() {
        return R.layout.fragment_main_know ;
    }
}
